<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
     function Goods(uname,price,count){
         this.uname=uname
         this.price=price
         this.count=count
     }
     const xm=new Goods("小米",1999,20)
     const hw=new Goods("华为",3999,59)
     const vivo=new Goods("vivo",1888,100)
     console.log(xm)
     console.log(hw)
     console.log(vivo)
  </script>
</body>
</html>